package cn.net.xyan.pay.core

import cn.net.xyan.pay.core.service.ButtonType
import cn.net.xyan.pay.core.service.button
import org.junit.Test

/**
 * Created by zarra on 2017/4/12.
 */

class MenuTest{
    @Test
    fun test1(){
        val b = button {
            name = "TestMenu"
            //type = ButtonType.CLICK
            child {
                name = "TestButton1"
                type = ButtonType.CLICK
                content = "KEY_Test1"
            }

            child {
                name = "TestButton2"
                type = ButtonType.CLICK
                content = "KEY_Test2"
            }
        }

        println(b)
    }
}